<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

	<xsl:template match="formConstructor/field[@type='formSelectOne']">
		<tr class="dark">
			<xsl:call-template name="fieldTitle"/>
			<td width="50%">
				<select name="{@name}">
					<xsl:for-each select="option">
						<option value="{@value}">
							<xsl:if test="@selected">
								<xsl:attribute name="selected">selected</xsl:attribute>
							</xsl:if>
							<xsl:value-of select="." />
						</option>
					</xsl:for-each>
				</select>
			</td>
		</tr>
	</xsl:template>

</xsl:stylesheet>